package com.gr.dao;

import com.gr.entity.Resource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 菜单管理 Mapper 接口
 * </p>
 *
 * @author guoran
 * @since 2022-05-07
 */
public interface ResourceMapper extends BaseMapper<Resource> {
    /**
     * 自连接一对多查询
     * @param adminId
     * @return
     */
    public List<Resource> selectResourcesByAdminId(Integer adminId);
}
